package br.com.document.job;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class JobDocumentFactory implements Serializable{
	
	public static JobDocument createJobDocumentView(JobDocument jobDocument){
		JobDocumentView view = new JobDocumentView(jobDocument);
		return view;
	}
	
	public static List<JobDocument> createJobDocumentViewList(List<JobDocument> jobDocuments){
		List<JobDocument> result = new ArrayList<JobDocument>();
		for (JobDocument jobDocument : jobDocuments) {
			JobDocumentView  view = (JobDocumentView) createJobDocumentView(jobDocument);
			result.add(view);
		}
		return result;
	}

}
